package com.dragee.modules.officialWebsite.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.dragee.utils.excel.FieldDispose;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;

/**
 * 标题和描述维护
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-07-15 21:51:30
 */
@Data
@TableName("gw_title_discription")
public class GwTitleDiscriptionEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @ExcelIgnore
    private Long id;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "title")
        private String title;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "discription")
        private String discription;
    }